<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <!-- import CSS -->
    <link
      rel="stylesheet"
      href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css"
    />
    <style>
      .c1 {
        border: 1px solid red;
        height: 30px;
        border-radius: 3px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- el-row表示一行 -->
      <el-row>
        <!-- el-col表示一列 一行最多24分栏 -->
        <el-col span="12"><div class="c1"></div></el-col>
        <el-col span="12"><div class="c1"></div></el-col>
      </el-row>
      <el-row>
        <el-col span="8"><div class="c1"></div></el-col>
        <el-col span="8"><div class="c1"></div></el-col>
        <el-col span="8"><div class="c1"></div></el-col>
      </el-row>
      <!-- 居中显示 -->
      <div style="width: 1200px; margin: 0 auto">
        <!-- gutter设置间距 -->
        <el-row gutter="20">
          <el-col span="16"><div class="c1"></div></el-col>
          <el-col span="8"><div class="c1"></div></el-col>
        </el-row>
      </div>
      <h1>1:3:1:1 居中 10像素的间距</h1>
      <div style="width: 1200px; margin: 0 auto">
        <el-row gutter="10">
          <el-col span="4"><div class="c1"></div></el-col>
          <el-col span="12"><div class="c1"></div></el-col>
          <el-col span="4"><div class="c1"></div></el-col>
          <el-col span="4"><div class="c1"></div></el-col>
        </el-row>
      </div>
      <h1>列偏移</h1>
      <!-- 设置offset属性 实现按照比例偏移 -->
      <el-row>
        <el-col span="20" offset="3"><div class="c1"></div></el-col>
      </el-row>
      <el-row gutter="20">
        <el-col span="6"><img src="imgs/a.jpg" width="100%" alt=""></el-col>
        <el-col span="6"><img src="imgs/b.jpg" width="100%" alt=""></el-col>
        <el-col span="6"><img src="imgs/c.jpg" width="100%" alt=""></el-col>
        <el-col span="6"><img src="imgs/d.jpg" width="100%" alt=""></el-col>
      </el-row>
    </div>
  </body>
  <!-- import Vue before Element -->
  <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
  <!-- import JavaScript -->
  <script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
  <script>
    let v = new Vue({
      el: "#app",
      data: function () {
        return {};
      },
      methods: {},
    });
  </script>
</html>
